<script type="text/javascript">
    var nsConfig = {
        userUid:'{{ ns_userUid|default(0) }}',
        pre:'{{ static_url("") }}',
        iscn:'{{ ns_iscn|default(0) }}',
        ns_source_login:'{{ ns_source_login|default(0) }}',
        sourceType:'{{ ns_source|default(0) }}',
        channelType:"{{ webType['channelType'] }}",
        domain:'{{ webType["domain"] }}',
        name:'{{ webType["name"] }}',
        logoURL:'{{ static_url(webType["logoURL"]) }}',
        roomLogoURL:'{{ static_url(webType["roomLogoURL"]) }}',
        roomLoadingURL:'{{ static_url(webType["roomLoadingURL"]) }}',
        GMQQ:['{{GMQQ[0]}}', '{{GMQQ[1]}}', '{{GMQQ[2]}}'],

        //wap
        pageName:'{{ ns_active|default("") }}'
    }
    function requireInit(){
        require.config({
            baseUrl:nsConfig.pre + 'web/js/mobile/',
            urlArgs:25,
            paths: {
                jquery:     'tool/jquery-1.8.0.min',
                pomelo:     'tool/pomeloclient',
                JSON:       'tool/json2',
                jqPlugin:   'tool/jquery.plugin',
                md5:        'tool/md5',
                onlineGift: 'm/onlinegift',
                forbidWord: 'm/forbidword',
                utils:      'm/utils',
                code:       'm/code',
                client:     'm/clientmgr',
                config:     'm/config',
                postMgr:    'm/postmgr',
                roomEvents: 'm/roomevents',
                onEvents:   'm/onevents',
                evtMgr:     'm/evtmgr',
                interface:  'm/interface',
                anchorWall: 'm/anchorwall',
                utilsApp:   'm/utils.app'
            }
        });
    }
</script>